from django.contrib import admin

from prj005.models import (
    clinical, cure, history, info,
    relevant, result, summary, status
)


@admin.register(clinical.Clinical)
class ClinicalAdmin(admin.ModelAdmin):
    list_display = ('id', 'create_time', 'herbalist_pen', 'discriminate_shi', 'owner', 'info')


@admin.register(cure.Cure)
class CureAdmin(admin.ModelAdmin):
    list_display = ('id', 'create_time', 'cure_zhong', 'cure_xi', 'cure_zhongxi', 'owner', 'info')


@admin.register(history.History)
class HistoryAdmin(admin.ModelAdmin):
    list_display = ('id', 'create_time', 'vagina_wai', 'vagina_xi', 'owner', 'info')


@admin.register(info.Info)
class InfoAdmin(admin.ModelAdmin):
    list_display = ('id', 'serial', 'create_time', 'patient_name', 'hospital_name', 'expert_name', 'check_status', 'owner')


@admin.register(relevant.Relevant)
class RelevantAdmin(admin.ModelAdmin):
    list_display = ('id', 'create_time', 'gynaecology_wai_normal', 'gynaecology_wai_abnormal', 'owner', 'info')


@admin.register(result.Result)
class ResultAdmin(admin.ModelAdmin):
    list_display = ('id', 'create_time', 'pain_xia', 'pain_yao', 'owner', 'info')


@admin.register(summary.Summary)
class SummaryAdmin(admin.ModelAdmin):
    list_display = ('id', 'create_time', 'main_xiafu', 'main_xiafu_unit', 'owner', 'info')


@admin.register(status.InfoStatus)
class InfoStatusAdmin(admin.ModelAdmin):
    list_display = ('id', 'create_time', 'info_serial', 'fix_name', 'fix_name_chinese', 'fix_before', 'fix_after')
